package com.lingdian.busapp.common;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.View;

public abstract class ViewHolderModel<T> {

	protected Context context;
	public List<T> list;
	public ViewHolderModel<T> holder;
	private int mRecource;
	public abstract void initViewHolder(View convertView);
	public abstract void setViewHolderValues(View convertView, int position);
	public ViewHolderModel(Context context, List<T> list,int mRecource) {
		super();
		if(list==null){
			list = new ArrayList<T>();
		}
		this.context = context;
		this.list = list;
		this.holder = this;
		this.mRecource = mRecource;
	}
	public int getmRecource() {
		return mRecource;
	}
	public void setmRecource(int mRecource) {
		this.mRecource = mRecource;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	
	
	
	
}
